#ifndef _HAL_BATTERY_H_
#define _HAL_BATTERY_H_

/*******************************************************************
 *
 * Copyright (C), 2021-2022, Letstrong, All rights reserved.
 *
 * Author      : 
 * Create Time : 2020-12-17
 * Version     : v0.1
 * Description : 
 *******************************************************************/
 
/*----------------------------Head file----------------------------*/
#include "adc.h"
#include "stdint.h"
#include "stdbool.h"

/*----------------------------macro file---------------------------*/

/*----------------------------type define--------------------------*/
typedef void (*hal_charge_evt_cb_t)(bool charging);

/*----------------------------var define---------------------------*/

/*-------------------------func declaration------------------------*/
extern bool hal_batt_charging_state_get(void);
extern bool hal_batt_full_charge_state_get(void);

extern void hal_batt_adc_measure(void);
extern void hal_batt_adc_deinit(void);
extern void hal_batt_adc_init(hal_adc_cb_t cb);
extern void hal_batt_charge_hw_deinit(void);
extern void hal_batt_charge_hw_init(hal_charge_evt_cb_t cb);

/*-----------------------------------------------------------------*/


#endif


